Objects Reference

flyEngine::set_camera

Prototype

void set_camera(bsp_object *d)

Parameters

Parameter Type Description
d bsp_object * camera is set to view from the object

Return Value

None

Remarks

This function is used to place the camera at a specified object. It computes the view frustum and sets the hardware projection matrix. All render calls after this function will use a camera placed at the object looking down its negative Z axis.